package learn.up.java1.quartz;

import java.util.Date;

import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.quartz.JobKey;
import org.quartz.Trigger;

public class JobTwo implements Job {

	@Override
	public void execute(JobExecutionContext context) throws JobExecutionException {
		System.out.println("curentTime  "+JobHello.sfd.format(new Date()));
		Trigger trigger  =  context.getTrigger();
		System.out.println("start up time "+trigger.getStartTime()
		+"  endTime is "+trigger.getEndTime());
		
		JobKey jkey = trigger.getJobKey();
		System.out.println("JobName "+jkey.getName()+"　group  "+jkey.getGroup());
	}

}
